import {createStore,applyMiddleware} from 'redux'
import createSageMiddlewear from 'redux-saga'

import saga from './sagas'
import reducer from './reducer'

const sagaMiddlewear =createSageMiddlewear()

const store = createStore(reducer,applyMiddleware(sagaMiddlewear))
sagaMiddlewear.run(saga)
export default store



